<?php
class Public_Comment_DeleteConfirmView extends BlogPublicBaseView
{
    public function executeHtml(AgaviRequestDataHolder $rd)
    {
        /* @var $comment Comment */
        $comment = $this->getAttribute('comment');
        if (! is_null($this->getAttribute('ok'))) {
            return;
        }
        $this->setAttribute('comment_id', $comment->id);
        $this->setAttribute('comment_text', $comment->comment_text);
        $this->setAttribute('title', 'Confirm comment delete');
        $this->setAttribute('return_url', $rd->getParameter('return_url', ''));
        $this->setupHtml($rd, 'blog');
    }
}
?>
